package xin.nick.demo;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("feign-inherit-provide")
public interface UserRemoteClient {
    @GetMapping("/user/name")
    String getName();

    @GetMapping("/user/info")
    String getUseInfo(@RequestParam("name") String name, @RequestParam("age") Integer age);

    @PostMapping("/user/add")
    String addUser(@RequestBody UserInfo userInfo);

}
